<?php

class headphonesex_scraper extends BlogScraper
{

    function __construct()
    {
        parent::__construct('headphonesex');
    }
    
    function getPostLinks()
    {
        return $this->xpath->query("//a[@title='permanent link']");
    }
}

class headphonesex_post_scraper extends PostScraper
{


        
    function getDate()
    {
        $date = $this->xpath->query("//h2[@class='date-header']")->item(0)->nodeValue;
        list($day_name, $date) = explode(',', $date, 2);
        return date('Y-m-d H:i:s', strtotime($date));

    }

    function getTitle()
    {
        return $this->xpath->query("//h3")->item(0)->nodeValue;
    }
        
}

?>